function call(): void{
    console.log("调用函数");
}

call();

function test(){
    console.log("test");
}

test();

function getNum(): number{

    return 100;

}

var num:number =getNum();
console.log(num);

function getSum(x:number,y:number): number{
    return x+y;
}

var sum: number =getSum(100,100);
console.log(sum);

//lambda表达式函数
var foo =function(x: number){
    return 10+x;
}
console.log(foo(10));
var foo01=(x: number)=>20+x;
console.log(foo01(10));